package cn.backpackerxl.web.model;

import java.util.List;

/**
 * @Author:backpackerxl CreateTime:2022/4/17
 * FileName:Servlet
 **/
public class Servlet {
    private Class<?> clazz;
    private List<ControllerMethod> controllerMethod;
    private String path;

    public Servlet() {
    }

    public Servlet(Class<?> clazz, List<ControllerMethod> controllerMethod, String path) {
        this.clazz = clazz;
        this.controllerMethod = controllerMethod;
        this.path = path;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Class<?> getClazz() {
        return clazz;
    }

    public void setClazz(Class<?> clazz) {
        this.clazz = clazz;
    }

    public List<ControllerMethod> getControllerMethod() {
        return controllerMethod;
    }

    public void setControllerMethod(List<ControllerMethod> controllerMethod) {
        this.controllerMethod = controllerMethod;
    }

    @Override
    public String toString() {
        return "Servlet{" +
                "clazz=" + clazz +
                ", controllerMethod=" + controllerMethod +
                ", path='" + path + '\'' +
                '}';
    }
}
